interface ICountryItem {
  country: string;
  abbreviation: string;
}
const countryJson: ICountryItem[] = require('country-json/src/country-by-abbreviation.json')

export const getCountry = (code: string = ''): Promise<any> => new Promise(resolve => {
  resolve({
    data: countryJson?.filter((v) => v?.country?.toLowerCase()?.includes(code.toLowerCase())),
    state: 'ok',
    message: ''
  })
})
